﻿namespace ManhattanProcedure.Model
{
    public class IPorPortInfo
    {
        private static IPorPortInfo instance;
        private IPorPortInfo() { }
        public static IPorPortInfo Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IPorPortInfo();
                }
                return instance;
            }
        }
        /// <summary>
        /// 域名地址
        /// </summary>
        public string UrlStart { get; set; } = "http://jumper.motonbackend.top/swoft/api/motong/";
        /// <summary>
        /// 设备ID
        /// </summary>
        public int DeviceID { get; set; } = 1;
        /// <summary>
        /// 咖啡机ip
        /// </summary>
        public string CoffeeSocketIP { get; set; } = "192.168.50.99";
        /// <summary>
        /// 咖啡机端口号
        /// </summary>
        public string CoffeePort { get; set; } = "444";
        /// <summary>
        /// 机械臂左臂ip
        /// </summary>
        public string RobotCoffeeIPLeft { get; set; } = "192.168.50.10";
        /// <summary>
        /// 机械臂右臂IP
        /// </summary>
        public string RobotCoffeeIPRight { get; set; } = "192.168.50.20";
        /// <summary>
        /// 冰淇淋IP
        /// </summary>
        public string RobotIceCreamIP { get; set; } = "192.168.50.30";
        /// <summary>
        /// 打印机IP
        /// </summary>
        public string PrinterCoffeeIP { get; set; } = "192.168.50.102";
        /// <summary>
        /// 打印机端口号
        /// </summary>
        public string PrinterCofferPort { get; set; } = "8888";
        /// <summary>
        /// 冰淇淋串口
        /// </summary>
        public string IOIceCreamPortName { get; set; } = "com1";
        /// <summary>
        /// 咖啡串口
        /// </summary>
        public string IOCoffeePortName { get; set; } = "com2";
        /// <summary>
        /// 咖啡右臂串口
        /// </summary>
        public string IOCoffeePortNameR { get; set; } = "com5";
        /// <summary>
        /// 咖啡机串口
        /// </summary>
        public string CoffeePortName { get; set; } = "com3";
        /// <summary>
        /// 冰淇淋机串口
        /// </summary>
        public string IceCreamPortName { get; set; } = "com4";
        /// <summary>
        /// 二维码串口名
        /// </summary>
        public string EWMPortName { get; set; } = "com6";
        /// <summary>
        /// 制冰通讯串口名
        /// </summary>
        public string ZBPortName { get; set; } = "com7";

        public double SugarInit1 { get; set; } = 3;
        public double SugarInit2 { get; set; } = 3;
        public double SugarInit3 { get; set; } = 3;
    }
}
